import React from "react";
import imgPath from "@/assets/noauth.svg";
import { Button, Space, Typography } from "antd";
import { useLocation, useNavigate } from "react-router-dom";
import { Link } from "react-router-dom";
const NotFount = () => {
	const navigate = useNavigate();
	const handleGoBack = () => {
		// window.history.back();
	};

	return (
		<div className="flx-center content-box">
			{/* //direction="vertical" */}
			<Space align="center" size={5}>
				<img width={400} height={400} src={imgPath} />
				<Space direction="vertical">
					<Typography.Title type="secondary" level={3}>
						抱歉，您当前的权限不足。
					</Typography.Title>
					<Typography.Text type="secondary" style={{ fontSize: 18 }}>
						请联系管理员开通更高级别的权限。
					</Typography.Text>
					<Typography.Link style={{ fontSize: 16 }}>
						<Link to="/home">返回主页</Link>
					</Typography.Link>
				</Space>
			</Space>
		</div>
	);
};
export default NotFount;
